<template>
	<div>
		<swiper :options="swiperOption" ref="mySwiper">
			<swiper-slide v-for="item in bannerList" :key="item.path">
				<img :src="src + item.path" style="height: 360px;">
					<!--<img src="../static/images/personal_center_bg.jpg" style="height: 750px;">-->
			</swiper-slide>
			<div class="swiper-pagination" slot="pagination"></div>
		</swiper>
	</div>
</template>

<script>
	export default {
		
		data() {
			return {
				swiperOption: {
					initialSlide: 0,
					pagination: {
						el: '.swiper-pagination',
					},
					loop: true,
					speed: 400,
					autoplay: {
						delay: 4500,
						disableOnInteraction: false,
					},
					observer: true, //修改swiper自己或子元素时，自动初始化swiper
					observeParents: true //修改swiper的父元素时，自动初始化swiper
				}
			}
		},
		props: ['bannerList', 'src'],
		methods: {
			
		}
	}
</script>